package com.roncoo.student.stu.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.student.stu.entity.UserStudy;
import com.roncoo.student.stu.service.IUserStudyService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jl
 * @since 2021-04-09
 */
@RestController
@RequestMapping("/stu/user-study")
public class UserStudyController {

    @Resource
    private IUserStudyService studyService;


    @PostMapping("/findAll")
    public Page findAll(UserStudy study, Page page){

        return studyService.findAll(study,page);
    }

    @PostMapping("addData")
    public void addData(UserStudy userStudy){
        studyService.addData(userStudy);
    }
}

